<script setup>
import './style.css'
import { useRouter } from 'vue-router'
const router = useRouter()
const token = window.$utils.getToken()
const checkToken =(token)=> {
  if(!token) {
    router.push({
      path: '/login'
    })
    return 
  }
}
checkToken(token)
</script>

<template>
  <div id="app">
      <router-view></router-view>
  </div>
</template>
